<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title> - 反馈详情</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" href="favicon.ico"> <link href="/Public/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/Public/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="/Public/css/animate.css" rel="stylesheet">
    <link href="/Public/css/style.css?v=4.1.0" rel="stylesheet">
    <style>
        .project-people img {
            width: 100px;
            height: 100px;
        }

    </style>
    <style>
        .font{
            font-size: initial;
        }
    </style>
</head>

<body class="gray-bg">
<div class="row">
    <div class="col-sm-9">
        <div class="wrapper wrapper-content animated fadeInUp">
            <div class="ibox">
                <div class="ibox-content">
                    <div class="row m-t-sm">
                        <div class="col-sm-12 font">
                            <div class="pull-right tooltip-demo">
                                <a href="javascript:history.back(-1);"  class="btn btn-white btn-sm" data-toggle="tooltip" data-placement="top" title="返回"><i class="fa fa-reply"></i> 返回</a>
                            </div>
                            <div class="panel blank-panel">
                                <div class="panel-heading">
                                    <div class="panel-options">
                                        <ul class="nav nav-tabs">
                                            <li><a href="javascript:;" data-toggle="tab">电话记录详情</a>
                                            </li>

                                        </ul>
                                    </div>
                                </div>

                                <div class="panel-body ">

                                    <div class="tab-content">
                                        <div class="tab-pane active" id="tab-1">
                                            <div class="feed-activity-list">
                                                <volist name="data" id="vo">
                                                <div class="feed-element">
                                                    <div class="media-body font">
                                                        <strong><{$vo.admin_name}>向用户<a href="<{$SRVER_NAME}>/admin.php/UserInfo/user_list_details?vid=<{$vo.vid}>"><span class="color_red"><{$vo.truename}>[<{$vo.mobile}>]</span></a></strong> 打电话
                                                        <br>
                                                        <small class="text-muted font"><{$vo.ctime}>&nbsp;<a href="javascript:;" onclick="edit_content('<{$vo.id}>')"><input type="button" value="修改"></a></small>
                                                        <div class="well font" style="display: flex;flex-wrap: wrap">
                                                            <strong class="font">沟通内容：</strong> <div class="font"><{$vo.content}></div>
                                                        </div>
                                                    </div>
                                                </div>

                                                </volist>

                                                <!--<volist name="list" id="vo">-->
                                                    <!--<if condition="($vo['vid'] heq '0')">-->
                                                        <!--<div class="feed-element">-->
                                                            <!--<div class="media-body font">-->
                                                                <!--由客服<strong><{$vo.admin_name}></strong>受理:-->
                                                                <!--<br>-->
                                                                <!--<small class="text-muted font"><{$vo.ctime}>&nbsp;-->
                                                                    <!--<if condition="$vo['admin_name'] eq $admin_name">-->
                                                                        <!--<a href="javascript:;" onclick="m('<{$vo.id}>')"><input type="button" value="修改"></a>-->
                                                                    <!--</if></small>-->
                                                                <!--<div class="well font" style="display: flex;flex-wrap: wrap">-->
                                                                    <!--<strong class="font">回复：</strong>  <div class="font"><{$vo.content}></div>-->
                                                                <!--</div>-->
                                                            <!--</div>-->
                                                        <!--</div>-->

                                                        <!--<else/>-->

                                                        <!--<div class="feed-element">-->
                                                            <!--<div class="media-body font">-->
                                                                <!--<strong>用户<a href="<{$SRVER_NAME}>/admin.php/UserInfo/user_list_details?vid=<{$feedback_info.vid}>"><span class="color_red"><{$user_name.truename}>[<{$user_name.mobile}>]</span></a></strong> 打入电话-->
                                                                <!--<br>-->
                                                                <!--<small class="text-muted font"><{$vo.ctime}></small>-->
                                                                <!--<div class="well font" style="display: flex;flex-wrap: wrap">-->
                                                                    <!--<strong class="font">回消息：</strong><div class="font"> <{$vo.content}></div>-->
                                                                <!--</div>-->

                                                            <!--</div>-->
                                                        <!--</div>-->
                                                    <!--</if>-->
                                                <!--</volist>-->

                                            </div>

                                        </div>

                                    </div>

                                </div>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

        <div class="col-sm-3" style="display: inline-block;position: fixed; float: right;margin-right: 0px">
            <div class="wrapper wrapper-content project-manager">
                <h4>回复</h4>
                <p class="small font-bold">
                    <textarea style="width: 90%" class="input_bg_color" name="back_content" id="back_content" cols="70" rows="12" placeholder="请输入回复内容"></textarea>
                </p>

                <div class="m-t-md">
                    <a href="javascript:;" onclick="back_add()" class="btn btn-xs btn-primary">添加</a>
                </div>
            </div>
        </div>

</div>

<script src="/Public/js/jquery.min.js?v=2.1.4"></script>
<script src="/Public/js/bootstrap.min.js?v=3.3.6"></script>
<script src="/Public/js/content.js?v=1.0.0"></script>
<script src="/Public/admin/js/plugins/jquery.colorbox-min.js"></script>
<script src="/Public/admin/js/ajaxfileupload.js"></script>
<script src="/Public/admin/js/plugins/layer/layer.min.js"></script>
<script>
    function loselay() {
        location.reload();
    }

    function edit_content(id) {
        var url="<{$SRVER_NAME}>/admin.php/Temp/edit_content";
        layer.open({
            type: 2,
            title: '电话记录编辑',
            area: ['700px', '600px'],
            shadeClose: false,
            content: url + '?id=' + id ,
        });
    }

</script>

<script>
    //回复反馈
    function back_add() {
//加载loading层
        var index = layer.load(1, {
            shade: [0.1, '#fff'] //0.1透明度的白色背景
        });
        var back_content = $("#back_content").val();

        var vid="<{$vid}>";
        var url = "<{$SRVER_NAME}>/admin.php/Temp/outbound_result";

        if (back_content == "") {
            layer.close(index);
            layer.alert("回复不能为空！\r\n", {
                title: '提示框',
                icon: 0,
            });
            return false;
        }

        $.post(url, {
            vid:vid,
           content: back_content,
        }, function (data) {

            if (data.code == "1001") {

                var test = layer.alert(data.result, {title: '提示框', icon: 1}, function (index) {
                        window.location.href = "";
                    }
                );
            }
            else {
                layer.alert(data.result, {title: '提示框', icon: 0});
            }

        });
        layer.close(index);
    }
</script>


</body>

</html>
